/* AI客服样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* 聊天容器样式 */
.ai-chat-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ai-chat-header {
    background-color: #4a89dc;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header h2 {
    margin: 0;
    font-size: 18px;
}

.ai-status {
    font-size: 14px;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* 消息区域 */
.ai-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
}

.ai-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    position: relative;
    word-wrap: break-word;
}

.user-message {
    background-color: #dcf8c6;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-response {
    background-color: white;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

/* 输入区域 */
.ai-chat-input {
    display: flex;
    padding: 15px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.ai-chat-input button {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.ai-chat-input button:hover {
    background-color: #3a70c0;
}

.ai-chat-input button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
} 